#ifndef CONTROLLER_H_
#define CONTROLLER_H_
#include "Scheduler.h"

#include "Disk.h"
#include <set>
#include "PoissonGenerator.h"

class Controller
{
public:
	Controller(Scheduler* s, Disk* d, PoissonGenerator * pg, double lambda);
	virtual ~Controller();
	void getNext();
	Scheduler* scheduler;
	Disk* disk;
	std::set<double> stats;
	double treatReq();
	Position addressConv(int memPos);
	
private:
	bool hasPendingReqs;
	PoissonGenerator * poissonGenerator;
	double lambda;
};

#endif /*CONTROLLER_H_*/
